<template>
  <view>
    <view class="cashier">
      <view
        @click="toCashierSale"
        class="cashier_btn"
        style="background: #57c9ff"
      >
        出售
      </view>
      <view
        class="cashier_btn"
        @click="toCashierRent"
        style="background: #578bff"
      >
        租赁
      </view>
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {};
  },
  methods: {
    //   去收银台租
    toCashierRent() {
      uni.navigateTo({
        url: "../cashierrent/cashierrent",
      });
    },

    // 去收银台售
    toCashierSale() {
      uni.navigateTo({
        url: "../cashiersale/cashiersale",
      });
    },
  },
};
</script>

<style>
.cashier {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.cashier_btn {
  width: 500rpx;
  margin: 10% 0;
  font-size: 32rpx;
  line-height: 3;
  text-align: center;
  border-radius: 64rpx;
  color: #fff;
}
</style>
